package com.parfinex.java.phase1.module2.task09;

public class ShapeRectTest {
    public static void main(String[] args){
        //1.声明Shape类
        Shape s1 = new Shape(1,2);
        s1.show();

        System.out.println("-------------------");
        //2.声明Rect类
        Rect r1 = new Rect(20,30,40,50);
        r1.show();

        System.out.println("-------------------");
        //3.声明shape类型的引用指向Rect类型的对象并打印特征
        Shape sr1 =new Rect(7,8,9,10);
        sr1.show();
    }
}
